import requst from "@/utils/request";
//加入采花车
export const addOrder = (data: object) => {
    return requst({
        url: '/client/order/orderInfo',
        method: 'post',
        data: data
    })
}
//获取订单列表
export const getOrderList = (params: any) => {
    return requst({
        url: '/client/order/list',
        method: 'get',
        params: params

    })
}
//获取订单详细
export const getOrder = (orderId: string) => {
    return requst({
        url: `/client/order/${orderId}`,
        method: 'get',

    })
}
//获取订单统计
export const getOrderCount = (status: number) => {
    return requst({
        url: `/client/order/ordersCount/${status}`,
        method: 'get',

    })
}
//修改订单
export const upOrder = (data: any) => {
    return requst({
        url: '/client/order/upStatus',
        method: 'put',
        data: data
    })
}
//软删除订单
export const deleteOrder = (orderId: string) => {
    return requst({
        url: `/client/order/${orderId}`,
        method: 'put'
    })
}
